﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SPSimpleDeveloper.Common.Helpers; 

namespace SPSimpleDeveloper.Common.Tests
{
    [TestClass]
    public class StringsHelperTests
    {
        [TestMethod]
        public void PassEmptyString_IsNullOrEmpty_ReturnsTrue()
        {
            string text = "";

            Assert.AreEqual(true, text.IsNullOrEmpty());

            text = null;
            Assert.AreEqual(true, text.IsNullOrEmpty());

            text = string.Empty;
            Assert.AreEqual(true, text.IsNullOrEmpty());
        }

        [TestMethod]
        public void PassNotEmptyString_IsNullOrEmpty_ReturnsFalse()
        {
            string text = "not empty string";

            Assert.AreEqual(false, text.IsNullOrEmpty());
        }
    }
}
